<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
		<%@ page import="java.util.*"%>
	<%@ page import="com.mcms.web.vo.DictCache"%>
<%@ page import="com.mcms.util.MapUtil"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	Map mapResult = (Map)request.getAttribute("mapResult");
	List doctorList = (List)mapResult.get("doctorInfo");
	List callBackList = (List)mapResult.get("callBackInfo");
	List photoInfoList = (List)mapResult.get("photoInfo");
	
%>	
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="<%=basePath %>mcms/themes/css/login.css" rel="stylesheet" type="text/css" />
<title>客户信息管理系统</title>
<script type="text/javascript">
<!--

//-->
// 是否预约select的change事件：是-显现预约信息层；否-不显现，并清空内容
function displayData(){
	var flag = $("#appointment option:selected").val();
     alert(flag);
	if(flag == '0' || flag == 0){
	alert("in");
		document.getElementById('dateDiv').style.display='block';
	}else{
	    document.getElementById('appointDate').value = '';
	    document.getElementById('appointmemo').value = '';
		document.getElementById('dateDiv').style.display='none';
	}
	
	
}

function showImg(url){
	document.getElementById("imgdiv").innerHTML='<img src="<%=basePath %>'+url+'" />';
}
</script>

</head>
<body>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" /> 
</form>


<style type="text/css">
	ul.rightTools {float:right; display:block;}
	ul.rightTools li{float:left; display:block; margin-left:5px}
</style>

<div class="pageContent" style="padding:5px">
	
	<div class="tabs">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>客户基本信息</span></a></li>
					<li><a href="javascript:;"><span>渠道问诊信息</span></a></li>
					<li><a href="javascript:;"><span>客户就诊信息</span></a></li>
					<li><a href="javascript:;"><span>回访客户信息</span></a></li>
					<li><a href="javascript:;"><span>图片</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent">
			<div>
				<jsp:include flush="true" page="/mcms/custom/fzdepart/customBaseInfo.jsp" />
			</div>
			
			<div>
				<jsp:include flush="true" page="/mcms/custom/fzdepart/customConsultInfo.jsp" />
			</div>
			
			<div>
				<div layoutH="146" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:91px; background:#fff">
			    <ul class="tree treeFolder">
					<li><a href="javascript">客户就诊列表</a>
						<ul>
							<!-- 
							<li><a href="<%=basePath %>viewDoctor.html?userName=aaa&deptCode=sc&actionType=viewDoctorInfo&customid=aaa" target="ajax" rel="jbsxBox1">客户初诊</a></li>
							<li><a href="<%=basePath %>viewDoctor.html?userName=aaa&deptCode=sc&actionType=viewDoctorInfo&customid=aaa" target="ajax" rel="jbsxBox1">客户第二次就诊</a></li>
							<li><a href="<%=basePath %>viewDoctor.html?userName=aaa&deptCode=sc&actionType=viewDoctorInfo&customid=aaa" target="ajax" rel="jbsxBox1">客户第三次就诊</a></li>
							<li><a href="<%=basePath %>viewDoctor.html?userName=aaa&deptCode=sc&actionType=viewDoctorInfo&customid=aaa" target="ajax" rel="jbsxBox1">客户第四次就诊</a></li>
						 	-->
						 	
						 	<%
						 	if(doctorList!=null){
						 		for(int i=0; i<doctorList.size(); i++){
									%>
									<li><a href="<%=basePath %>viewDoctor.html?doctorid=<%=doctorList.get(i)%>&actionType=viewDoctorInfo" target="ajax" rel="jbsxBox1">客户第<%=i+1%>次就诊</a></li>
									<%
								}
						 	}
							
							%>
						 	
						</ul>
					</li>
			     </ul>
				</div>
				<div id="jbsxBox1" class="unitBox" style="margin-left:246px;">
					<!--#include virtual="list1.html" -->
				</div>
			</div>
			
			<div>
				<div layoutH="146" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:91px; background:#fff">
				    <ul class="tree treeFolder">
						<li><a href="javascript">回访客户列表</a>
							<ul>
							    <!--  
								<li><a href="<%=basePath%>callBackRecord.html?userName=aaa&deptCode=sc&actionType=showCallBackRecord" target="ajax" rel="jbsxBox2">第一次回访</a></li>
								<li><a href="<%=basePath%>callBackRecord.html?userName=aaa&deptCode=sc&actionType=showCallBackRecord" target="ajax" rel="jbsxBox2">第二次回访</a></li>
								<li><a href="<%=basePath%>callBackRecord.html?userName=aaa&deptCode=sc&actionType=showCallBackRecord" target="ajax" rel="jbsxBox2">第三次回访</a></li>
								<li><a href="<%=basePath%>callBackRecord.html?userName=aaa&deptCode=sc&actionType=showCallBackRecord" target="ajax" rel="jbsxBox2">第四次回访</a></li>
								-->
								
						 	<%
						 	if(callBackList!=null){
						 		for(int i=0; i<callBackList.size(); i++){
									%>
									<li><a href="<%=basePath %>callBackRecord.html?id=<%=callBackList.get(i)%>&actionType=showCallBackRecord" target="ajax" rel="jbsxBox2">客户第<%=i+1%>次就诊</a></li>
									<%
								}
						 	}
							
							%>
							
							</ul>
						</li>
				     </ul>
				</div>
				
				<div id="jbsxBox2" class="unitBox" style="margin-left:246px;">
					<!--#include virtual="list1.html" -->
				</div>
			</div>
			
			<div>
			  <table width="100%">
			      <tr>
			      	<td width="50%">
			      		<table class="table">
			      		  
			      			<thead>
			      			 	<tr >
			      				<th width="50">上传部门</th>
			      				<th width="50">上传时间</th>  
			      				<th width="50">上传人</th>
			      				<th width="250">备注</th>  
			      				</tr>
			      			</thead>
			      			
			      			<tbody>
			      			
			      			  <!--<tr onclick="showImg('upload\\photo\\2012\\07\\19\\bbf0ca62-e586-4261-ac6f-8f0db0772807_2012_07_19_02_04_531.jpg')">
			      				<td>第一次就诊</td>
			      				<td>术前</td>
			      				<td>术前</td>
			      				<td><p>术前二娃而乏味律法i无ie哦发疯了你是哪的覅为u哦if分阿卡<br>va级车围殴ie发狠此框架哪位u哈佛i我</p></td>
			      			  </tr>	
			      			  
			      			  <tr onclick="showImg(2)">
			      				<td>第一次就诊</td>
			      				<td>术后</td>
			      			  </tr>	 
			      			  <tr onclick="showImg(3)">
			      				<td>第一次就诊</td>
			      				<td>术后回访</td>
			      			  </tr>	 	
			      			  <tr onclick="showImg(4)">
			      				<td>第二次就诊</td>
			      				<td>术前</td>
			      			  </tr>	 		     
			      			  --><%
							 	if(photoInfoList!=null){
							 		for(int i=0; i<photoInfoList.size(); i++){
							 			Map map = (Map)photoInfoList.get(i);
										%>
										  <tr onclick="showImg('<%=map.get("url")==null?"":map.get("url").toString().replace("\\","\\\\") %>')">
						      				<td><%=map.get("upload_dept_id") %></td>
						      				<td><%=map.get("upload_time") %></td>
						      				<td><%=map.get("upload_id") %></td>
						      				<td><%=map.get("url") %></td>
						      			  </tr>	
										
										<%
									}
							 	}
								
								%>
			      			  
			      			   
			      			</tbody>
			      		</table>
			      	</td>
			      	<td width="50%">
			      	  <div id="imgdiv">
			      	      <!--<img src="<%=basePath %>themes/zhifa/sh3.png" />
			      	  --></div>
			      	  
			      	</td>
			      </tr>
			  </table>
			
			</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
	
</div>


</body>
</html>